import java.sql.Connection;
import java.sql.Driver;
import java.sql.SQLException;
import java.util.Properties;

public class testDemo1 {
    public static void main(String[] args) throws SQLException {
        Driver driver = new com.mysql.jdbc.Driver();
        String url = "jdbc:mysql://localhost:3306/test";
        Properties info = new Properties();
        info.getProperty("user","root");
        info.getProperty("password","111111");
        Connection connection = driver.connect(url,info);
        System.out.println(connection);
    }
}
